{{define "title"}}Machine DB - NICs{{end}}

{{define "content"}}

<h1>NICs</h1>
  <table class="mdl-data-table mdl-js-data-table">
    <thead>
      <tr>
        <th class="mdl-data-table__cell--non-numeric">Name</th>
        <th class="mdl-data-table__cell--non-numeric">Machine</th>
        <th class="mdl-data-table__cell--non-numeric">MAC Address</th>
        <th class="mdl-data-table__cell--non-numeric">Switch</th>
        <th class="mdl-data-table__cell--non-numeric">Port</th>
      </tr>
    </thead>
    <tbody>
     {{range .Nics}}
      <tr>
        <td class="mdl-data-table__cell--non-numeric">{{.Name}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Machine}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.MacAddress}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Switch}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Switchport}}</td>
      </tr>
      {{end}}
    </tbody>
  </table>

{{end}}
